package cn.com.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import cn.com.system.entity.SysParameterEntity;
import cn.com.common.result.DataResult;
import cn.com.system.service.SysParameterService;

import org.springframework.stereotype.Controller;
import io.swagger.annotations.ApiOperation;

/**
 * 系统参数
 *
 * @author shaochangyang
 * @email l2l84o7o5@live.com
 * @date 2022-05-29 21:47:56
 */
@Controller
@RequestMapping("/sys/")
public class SysParameterController {
	@Autowired
	private SysParameterService sysParameterService;

	@ApiOperation(value = "查看")
	@PostMapping("parameter/info")
	@ResponseBody
	public DataResult add(@RequestBody SysParameterEntity sysParameter) {
		return DataResult.success(sysParameterService.getById(sysParameter.getId()));
	}

}
